package com.cosina.game.robodefence.model;


public class Enemy extends Life{
	public final int kind ;
	public final Way way;
	private int speed=0;
	
	public Enemy(int kind,Way way){
		super(10);
		this.speed = 2;
		this.kind = kind;
		this.way = way;
	}

	public int getPxX(){
		return way.getPxX( speed);
	}
	
	public int getPxY(){
		return way.getPxY(speed);
	}
	
	public String getDirection(){
		return way.getDirection();
	}
	
	public void move() {
		way.move();
	}
	
	public boolean isArrive(){
		return way.noPath();
	}
}
